package com.mical.demo.dto;

import com.mical.demo.model.Role;

import java.util.Set;

public class LoginResponse {
    private String token;
    private Long id;
    private String username;
    private Set<Role> role;

    // Constructor, getters, and setters
    public LoginResponse(String token, Long id, String username, Set<Role> role) {
        this.token = token;
        this.id = id;
        this.username = username;
        this.role = role;
    }

    // Getters only (no setters needed)
    public String getToken() {
        return token;
    }

    public Long getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public Set<Role> getRole() {
        return role;
    }
}